//*****************************************************************************
//
// ABEC3 Solving File
// Project: Helmholtz Resonator
//
//*****************************************************************************

// Embedded text-file

File="Formula.txt"


Control_Solver 
  f1=10; f2=1000; NumFrequencies=30; Abscissa=log
  Dim=3D
  MeshFrequency=3000Hz


Subdomain_Properties
  Subdomain=1
  
Subdomain_Properties
  Subdomain=2
  ELType=Exterior
  
Infinite_Baffle
  Subdomain=2
  IBPlane=z


Nodes "N"
  1001  0.0    0.0   1.0

  1002  { W/2 }    { -H/2 }   { -Len }
  1003  { W/2 }    { H/2 }    { -Len }
  1004  { -W/2 }   { H/2 }    { -Len }
  1005  { -W/2 }   { -H/2 }   { -Len }
  
  2001  { xA }     { yA }     0.0
  2002  { -W/2 }   { -H/2 }   0.0
  2003  { W/2 }    { -H/2 }   0.0
  2004  { W/2 }    { H/2 }    0.0
  2005  { -W/2 }   { H/2 }    0.0
  
  4001  { dA/2 + xA }   { dA/2 + yA }    0   
  4002  { dA/2 + xA }   { -dA/2 + yA }   0
  4003  { -dA/2 + xA }  { dA/2 + yA }    0
  4004  { W/2 }         { dA/2 + yA }    0
  4005  { dA/2 + xA }   { H/2 }          0
  4006  { -dA/2 + xA }  { H/2 }          0
  4007  { W/2 }         { -dA/2 + yA }   0
  4008  { dA/2 + xA }   { -H/2 }         0
  4009  { -dA/2 + xA }  { -H/2 }         0
  4010  { -dA/2 + xA }  { -dA/2 + yA }   0
  4011  { -W/2 }        { dA/2 + yA }    0
  4012  { -W/2 }        { -dA/2 + yA }   0
  4013  { -W/2 }        { yA }           0


// Cabinet boundaries
 
Elements "Walls"
  RefNodes=N
  Subdomain=1
  101  1002  2003  2004  1003    // Side wall
  102  1003  2004  2005  1004   
  103  1002  1005  2002  2003
  104  1004  2005  2002  1005
  105  1002  1003  1004  1005
  
Elements "Wall with aperture"
  RefNodes=N
  Subdomain=1
  SwapNormals
  101  4002  4007  4004  4001
  102  4001  4004  2004  4005    
  103  4001  4005  4006  4003 
  104  4007  4002  4008  2003
  105  4002  4010  4009  4008
  106  4010  4012  2002  4009
  107  4003  4011  4012  4010
  108  4006  2005  4011  4003

  
// Interface
// Note subdomain=2 here consists of Infinite Baffle and Interface
 
Shell  "Aperture"
  Subdomain=1,2
  RefNodes="N"                 // Where to get vertices from.
  SwapNormals
  Position=2001,4013,2002      // Triangle giving position and direction.
  dD={ dA }                      // Diameter of disk.
  Simple=true


// Sound source

Pressure_Points
  Subdomain=2
  RefNodes=N
  DrvGroup=1001
  101   1001
